{include file="common/mate"}
<body>
	<!-- 头部 -->
    {include file="common/top"}
	<!-- /头部 -->
	<div class="main-container container-fluid">
		<div class="page-container">
            <!-- Page Sidebar -->
            {include file="common/left"}
            <!-- Page Sidebar Header-->
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                        <a href="{:url('index/index')}">系统</a>
                    </li>
                         <li>
                        <a href="{:url('brand/lst')}">文章管理</a>
                    </li>
                         <li class="active">添加文章</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">新增文章</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">所属栏目</label>
                            <div class="col-sm-6">
                            <select name="cate_id">

                       <option value="" >选择栏目</option>
                                {volist name="cateRes" id="vo"}
                                    <option value="{$vo.id}"  >|<?php echo str_repeat('-',$vo['level']*4)?>{$vo.cate_name}</option>
                                 {/volist}
                            </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">标题</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="brand_name" placeholder="" name="title" required="" type="text">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        <div class="form-group">
                            <label for="group_id" class="col-sm-2 control-label no-padding-right">置顶</label>
                            <div class="col-sm-6">

                                <div class="radio" style="float: left;padding-right: 10px;">
                                    <label><input name="show_top" value="1" type="radio"><span class="text">是</span></label></div>
                                <div class="radio" style="float: left">
                                    <label><input checked="checked"  class="inverted" name="show_top" value="0" type="radio"><span class="text">否</span></label></div>

                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">关键词</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="brand_url" placeholder="" name="keywords"  type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">描述</label>
                            <div class="col-sm-6">
                                <input class="form-control"  placeholder="" name="desc"  type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">作者</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="brand_url" placeholder="" name="author"  type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">email</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="brand_url" placeholder="" name="email"  type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">外链</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="brand_url" placeholder="" name="link_url"  type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">缩略图</label>
                            <div class="col-sm-6">
                                <input type="file"  name="thumb"/>
                            </div>
                        </div>
                        <div class="form-group" >
                            <label  for="username"  class="col-sm-2 control-label no-padding-right">内容</label>
                            <div class="col-sm-6">

                                <textarea id="content"  name="content" ></textarea>
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">保存信息</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>
    {include file="common/js"}
	<script type="text/javascript">
        //实例化编辑器
        //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
        UE.getEditor('content',{initialFrameWidth:null,initialFrameHeight:400,});
    </script>

</body></html>